package com.oracle.service.impl;

import com.oracle.dao.StudentDao;
import com.oracle.model.Student;
import com.oracle.service.StudentService;

public class StudentServiceImpl implements StudentService {
	private StudentDao dao;
	public StudentServiceImpl(){
		System.out.println("init");
	}
	public StudentDao getDao() {
		return dao;
	}
	public void setDao(StudentDao dao) {
		this.dao = dao;
	}
	@Override
	public void addStudent(Student student) {
		this.dao.save(student);
	}
	
}
